QUIGON_PATH = ./lib_quigon
QUIGON_SRC = $(QUIGON_PATH)/src
QUIGON_INC = $(QUIGON_PATH)/include
QUIGON_LIB = $(QUIGON_PATH)/lib
#need a environmental $BOOST
#BOOST = -IBOOST_INCLUDE_PATH -LBOOST_LIB_PATH

CXX = g++
CFLAGS = -O
test_lidar : 
		$(CXX) $(CFLAGS)  stk_lidar_io.cpp  stk_para.cpp  test_lidar.cpp $(QUIGON_SRC)/*.cpp -o ../bin/test_lidar -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

test_fernald_priori : 
		$(CXX) $(CFLAGS)  stk_lidar_io.cpp  stk_para.cpp  test_fernald_priori.cpp $(QUIGON_SRC)/*.cpp -o ../bin/test_fernald_priori -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

stk_extinction : 
		$(CXX) $(CFLAGS)  stk_lidar_io.cpp  stk_para.cpp  exe_stk_extinction.cpp $(QUIGON_SRC)/*.cpp -o ../bin/stk_extinction -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

stk_backscatter :
		$(CXX) $(CFLAGS) -DMACRO_STK stk_lidar_io.cpp  stk_para.cpp  exe_backscatter.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/stk_backscatter -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

stk_lidar_constant :
		$(CXX) $(CFLAGS) -DMACRO_STK stk_lidar_io.cpp  stk_para.cpp  exe_lidar_constant.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/stk_lidar_constant -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

stk_lidar_ratio :
		$(CXX) $(CFLAGS) -DMACRO_STK stk_lidar_io.cpp  stk_para.cpp  exe_lidar_ratio.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/stk_lidar_ratio -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

stk_overlap :
		$(CXX) $(CFLAGS) -DMACRO_STK stk_lidar_io.cpp  stk_para.cpp  exe_overlap.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/stk_overlap -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm


yl_backscatter :
		$(CXX) $(CFLAGS) -DMACRO_YL  yl_lidar_io.cpp  stk_para.cpp  exe_backscatter.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/yl_backscatter -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

yl_lidar_constant :
		$(CXX) $(CFLAGS) -DMACRO_YL yl_lidar_io.cpp  stk_para.cpp  exe_lidar_constant.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/yl_lidar_constant -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

yl_lidar_ratio :
		$(CXX) $(CFLAGS) -DMACRO_YL yl_lidar_io.cpp  stk_para.cpp  exe_lidar_ratio.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/yl_lidar_ratio -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

yl_overlap :
		$(CXX) $(CFLAGS) -DMACRO_YL yl_lidar_io.cpp  stk_para.cpp  exe_overlap.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/yl_overlap -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

yl_afterpulse :
		$(CXX) $(CFLAGS)  yl_lidar_io.cpp  stk_para.cpp  exe_yl_afterpulse.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/yl_afterpulse -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

lib: 
		$(CXX) $(CFLAGS) $(QUIGON_SRC)/*.cpp -c -I$(QUIGON_INC)
		
test_filter :
		$(CXX) $(CFLAGS)  stk_lidar_io.cpp  stk_para.cpp  test_filter.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/test_filter -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

stk_backscatter_diff :
		$(CXX) $(CFLAGS)  stk_lidar_io.cpp  stk_para.cpp  exe_stk_backscatter_diff.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/stk_backscatter_diff -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm

stk_backscatter_diff2 :
		$(CXX) $(CFLAGS)  stk_lidar_io.cpp  stk_para.cpp  exe_stk_backscatter_diff2.cpp  $(QUIGON_SRC)/*.cpp -o ../bin/stk_backscatter_diff2 -I$(QUIGON_INC) $(BOOST) -lboost_filesystem-mt -lboost_system-mt -lm
	

all :	test_lidar stk_backscatter
		
clean :
		rm $(OBJS) ../bin/test_lidar  ../bin/stk_backscatter
